package lab02.test35;

/**
 * Created by lenovo on 2017/11/21.
 */
public class Salesman extends Employee {
    //属性：工资 项目数 提成
    double baseSalary;
    int count;
    double commison;
    public Salesman(String workname2,double commison,int count) {
        super(workname2);
        this.baseSalary=baseSalary;
        this.count=count;
        this.commison=commison;
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public double computeSalary() {
        return baseSalary+count*commison;
    }
}
